package com.hmall.hmallapi.api;

import com.hmall.hmallapi.config.DefaultFeignConfig;
import com.hmall.hmallapi.dto.ItemDTO;
import com.hmall.hmallapi.fallback.OrderServiceFallBack;
import com.hmall.hmallapi.fallback.UserServiceFallBack;
import com.hmall.hmallapi.po.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;

/**
 * @author malty
 */
@FeignClient(name = "order-service", configuration = DefaultFeignConfig.class, fallbackFactory = OrderServiceFallBack.class)
public interface OrderService {
    @PostMapping("/orders/update")
    void updateById(@RequestBody Order order);
}
